package sicau.carManager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import sicau.carManager.entity.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ITcz
 * @since 2021-02-05
 */
public interface AdminService extends IService<Admin> {

    Admin loginIn(String account, String password);

    int addOne(Admin admin);

    int putImage(byte[] bytes, Integer id);

    byte[] pull(Integer id);

    boolean updateOne(Admin admin);

    IPage<Admin> showAllAdmin(int pageNumer, int pageSize, String campus);
}
